package com.sql.weeego.bean.base;

/**
 * UchomeTraceId entity. @author MyEclipse Persistence Tools
 */

public class UchomeTraceId implements java.io.Serializable {

	// Fields

	private Integer blogid;
	private Integer uid;

	// Constructors

	/** default constructor */
	public UchomeTraceId() {
	}

	/** full constructor */
	public UchomeTraceId(Integer blogid, Integer uid) {
		this.blogid = blogid;
		this.uid = uid;
	}

	// Property accessors

	public Integer getBlogid() {
		return this.blogid;
	}

	public void setBlogid(Integer blogid) {
		this.blogid = blogid;
	}

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomeTraceId))
			return false;
		UchomeTraceId castOther = (UchomeTraceId) other;

		return ((this.getBlogid() == castOther.getBlogid()) || (this
				.getBlogid() != null
				&& castOther.getBlogid() != null && this.getBlogid().equals(
				castOther.getBlogid())))
				&& ((this.getUid() == castOther.getUid()) || (this.getUid() != null
						&& castOther.getUid() != null && this.getUid().equals(
						castOther.getUid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBlogid() == null ? 0 : this.getBlogid().hashCode());
		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		return result;
	}

}